function getBusTypes() {

}
$(document).ready(function() {
	request("resourceType/list", "GET", null, function(result) {
		if (result.code = 200) {
			var treeDate = result.result;
			var $tree = $('#leftTree').treeview({
				data: treeDate,
				showTags: false,
				showCheckbox: true,   //是否显示复选框
				showBorder: false,
				onhoverColor: "#F9F9F9",
				selectedBackColor: "#1e9fff",
				highlightSelected: true,    //是否高亮选中
				// multiSelect: false,    //多选
				levels: 1,
				enableLinks: true,//必须在节点属性给出href属性
				color: "#010A0E",
				onNodeSelected: function(event, node) {
						debugger;
						alert(node.childIds); 	
						$('#types').val(node.childIds);
						requestPost(1);			
				}
				
				 });
		} else{
			console.log("获取类型失败");
		}
});
});